﻿using System;
using System.Configuration;
using mojoPortal.Web.RS.AppCode.Lib;

namespace mojoPortal.Web.RS.Admin
{
    public partial class RSContactUs : RSBasePage
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            //SuppressAllMenus();
            //SuppressPageMenu();
            InitializeReadyServicePage("ReadyService Support");
        }

        protected void btnSendEmail_Click(Object sender, EventArgs e)
        {
            string body = txtComment.Text;
            string subject = txtSubject.Text;
            string toEmail = txtTo.Text;
            string fromEmail = txtFrom.Text;
            if(fromEmail.Length > 0)
                RSCommonFunctions.SendEmail(body, subject, fromEmail, toEmail);
        }

    }
}